package org.flashbrighton.as3bots.display.templates
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;

	public class BotDescriptionRow extends Sprite
	{
		public var nameTextField : TextField;
		
		public function BotDescriptionRow()
		{
			graphics.beginFill( 0, 0 );
			graphics.drawRect(0,0,200,20);
			graphics.endFill();
			graphics.beginFill( 0x808080 );
			graphics.drawRect(2,2,198,18);
			graphics.endFill();
			
			nameTextField = new TextField();
			var tformat:TextFormat = new TextFormat("Arkitech", 12, 0x0);
			tformat.align = TextFormatAlign.LEFT;
			nameTextField.defaultTextFormat = tformat;
			nameTextField.width = 198;
			nameTextField.height = 20;
			nameTextField.x = 4;
			nameTextField.y = 2;
			nameTextField.multiline = false;			
			nameTextField.embedFonts = true;
			nameTextField.mouseEnabled = false;
			
			addChild( nameTextField );
			
		}
		
	}
}